package com.xinxin.blockchain.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 账户资产表
 * </p>
 *
 * @author ys
 * @since 2021-05-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class AccountAsset implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 账户id
     */
    private Long accountId;

    /**
     * 资产类型
     */
    private Integer type;

    /**
     * 资产类型描述
     */
    private String typeText;

    /**
     * 可用数额
     */
    private BigDecimal available;

    /**
     * 冻结数额
     */
    private BigDecimal frozen;

    /**
     * 总数额
     */
    private BigDecimal total;

    /**
     * 乐观锁版本号
     */
    private Integer version;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    private LocalDateTime modifyTime;

    /**
     * 数据（逻辑）状态
     */
    private Boolean dataStatus;


}
